package com.leps.nq.bu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leps.nq.bu.entity.BuTeam;
import com.leps.nq.bu.vo.CreateTeamVo;
import com.leps.nq.bu.vo.TeamVo;
import com.leps.nq.bu.vo.UpdateTeamVo;

import java.util.List;

/**
 * <p>
 * 任务队伍表 服务类
 * </p>
 *
 * @author hex
 * @since 2022-05-22
 */
public interface IBuTeamService extends IService<BuTeam> {

    /**
     * 级联保存任务队伍及队伍成员
     * @param createTeamVo
     * @return
     */
    boolean saveWithMembers(CreateTeamVo createTeamVo);

    /**
     * 获取队伍及成员列表信息
     * @param teamId
     * @return
     */
    TeamVo getTeamAndMemberInfo(Integer teamId);

    /**
     * 列新队伍信息并重新分配队伍成员
     * @param vo
     * @return
     */
    boolean updateTeamAndMember(UpdateTeamVo vo);

    List<TeamVo> listVo();
}
